package com.mindata.blockchain.core.bean;

import java.util.Date;

/**
 * 联盟的成员
 * @author wuweifeng wrote on 2018/3/5.
 */
public class Member {
	private String appId; // 成员id，用于校验该客户是否合法，客户端启动时需要带着该值。一个公司可能有多个appId，相当于多个服务器节点
	private String name; // 成员名
	private String ip; // ip（可不设置，由该成员客户端启动后自行检测）
	private Date createTime;
	private Date updateTime;

	@Override
	public String toString() {
		return "Member{" + "appId='" + appId + '\'' + ", name='" + name + '\'' + ", ip='" + ip + '\'' + '}';
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * @return the updateTime
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * @param updateTime the updateTime to set
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
